package cn.stylefeng.guns.sys.modular.tao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author
 * @since 2019-08-09
 */
@TableName("tao_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 商品编号
     */
    @TableField("usercode")
    private String usercode;


    @TableField("brands_id")
    private Integer brandsId;
    /**
     * 单位条形码
     */
    @TableField("barcode")
    private String barcode;

    /**
     * 商品全称
     */
    @TableField("fullname")
    private String fullname;

    /**
     * 商品简称
     */
    @TableField("name")
    private String name;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 产地
     */
    @TableField("area")
    private String area;

    /**
     * 规格
     */
    @TableField("standard")
    private String standard;

    /**
     * 商品备注
     */
    @TableField("comment")
    private String comment;

    /**
     * 是否置顶
     */
    @TableField("isstop")
    private String isstop;

    /**
     * 品牌
     */
    @TableField("brandname")
    private String brandname;

    /**
     * 重量
     */
    @TableField("weight")
    private BigDecimal weight;

    /**
     * 长度
     */
    @TableField("length")
    private BigDecimal lengths;

    /**
     * 宽度
     */
    @TableField("width")
    private BigDecimal width;

    /**
     * 高度
     */
    @TableField("height")
    private BigDecimal height;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    @TableField("cost")
    private BigDecimal cost;
    @TableField("update_time")
    private Date updateTime;

    /*@Transient
    private String goodsDetails;*/

    @TableField("state")
    private Integer state;

    @TableField("integral_state")
    private Integer integralState;




    /**
     * 关联图文视频表 picture_video 中 id
     */
    @TableField("picture_video_id")
    private String pictureVideoId;





    /*public String getGoodsDetails() {
        return goodsDetails;
    }

    public void setGoodsDetails(String goodsDetails) {
        this.goodsDetails = goodsDetails;
    }*/

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    /**
     * 是否上架[0、未上架 1、上架 ]
     */

    public Integer getIntegralState() {
        return integralState;
    }

    public void setIntegralState(Integer integralState) {
        this.integralState = integralState;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getIsstop() {
        return isstop;
    }

    public void setIsstop(String isstop) {
        this.isstop = isstop;
    }

    public String getBrandname() {
        return brandname;
    }

    public void setBrandname(String brandname) {
        this.brandname = brandname;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getLengths() {
        return lengths;
    }

    public void setLengths(BigDecimal lengths) {
        this.lengths = lengths;
    }

    public BigDecimal getWidth() {
        return width;
    }

    public void setWidth(BigDecimal width) {
        this.width = width;
    }

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {
        this.height = height;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }


    public Integer getBrandsId() {
        return brandsId;
    }

    public void setBrandsId(Integer brandsId) {
        this.brandsId = brandsId;
    }


    public String getPictureVideoId() {
        return pictureVideoId;
    }

    public void setPictureVideoId(String pictureVideoId) {
        this.pictureVideoId = pictureVideoId;
    }





    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", usercode=" + usercode +
                ", barcode=" + barcode +
                ", fullname=" + fullname +
                ", name=" + name +
                ", type=" + type +
                ", area=" + area +
                ", standard=" + standard +
                ", comment=" + comment +
                ", isstop=" + isstop +
                ", brandname=" + brandname +
                ", weight=" + weight +
                ", lengths=" + lengths +
                ", width=" + width +
                ", height=" + height +
                ", price=" + price +
                ", state=" + state +
                "}";
    }
}
